package gov.kqqzyyy.monkey.orderpad.broadcastreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import gov.kqqzyyy.monkey.orderpad.ui.UserLoginActivity;


/**
 * Created by Administrator on 2017/4/29.
 * Edited by Monkey_C
 */

public class AutoStartBroadcastReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {

        Intent mIntent = new Intent(context, UserLoginActivity.class);
        mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
        context.startActivity(mIntent);

    }
}
